<template>
    <form >
        <slot></slot>
    </form>
    
</template>

<script>
    // import  from ''
    export default {
        provide(){
            return {
                form:this
            }
        },
        props:['model','rules'],
        data(){
            return{
            }
        },
        created(){
            this.fields = [];
            this.$on("formItemAdd", item => this.fields.push(item));
        },
        methods:{
            submit(){

            }
        }
    }
</script>

<style scoped>

</style>